package com.beida.redistest.service.impl;

import com.beida.redistest.domain.po.User;
import com.beida.redistest.mapper.UserMapper;
import com.beida.redistest.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-08-26
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public User selectbyid(Integer id) {
        User user = userMapper.selectbyid(id);
        return user;
    }
    private final Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);
}
